//
//  DetailCell.m
//  卢卡的时光网
//
//  Created by 卡神 on 15/7/22.
//  Copyright © 2015年 lok. All rights reserved.
//

#import "DetailCell.h"
#import "UIImageView+WebCache.h"

@implementation DetailCell

- (void)setModel:(News *)model {
    _model = model;
    [self setNeedsLayout];
}

- (void)layoutSubviews {
    _detailImage.layer.borderColor = [UIColor whiteColor].CGColor;
    _detailImage.layer.borderWidth = 2;
    _detailImage.layer.cornerRadius = 10;
    _detailImage.layer.masksToBounds = YES;
    [self.detailImage sd_setImageWithURL:[NSURL URLWithString:_model.image] placeholderImage:[UIImage imageNamed:@"3"]];
}

- (void)awakeFromNib {
    // Initialization code
}

@end
